
package com.su.dev.current;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class SipderQuene extends BaseTaskQueue<BaseTask> {
    private final ExecutorService newScheduledThreadPool = Executors.newScheduledThreadPool(100);

    private SipderQuene() {

    }

    public static SipderQuene getIns() {
        return SingletonHolder.sIn;
    }

    private final static class SingletonHolder {
        public static final SipderQuene sIn = new SipderQuene();
    }

    @Override
    public void addTask(BaseTask task) {
        newScheduledThreadPool.submit(task);
    }

}
